package day09;

public class Teacher {
	private int id;
	private String name;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Teacher(int id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	public boolean equals(Object o){
		if(o==null){
			return false;
		}
		if(this==o){
			return true;
		}
		Teacher t = null;
		if(!(o instanceof Teacher)){
			return false;
		}
		t = (Teacher)o;
		if(id==t.id){
			return true;
		}else{
			return false;
		}
	}
	
}
